﻿@{
    Layout = null;
}

@if (User.Identity.IsAuthenticated) {
    @:Welcome <b>@Html.Encode(User.Identity.Name)</b>!
    @:[ @Html.ActionLink("撰写日志", "Add", "Posts") ]
    @:[ @Html.ActionLink("进入管理", "Index", "Admin") ]
    @:[ @Html.ActionLink("Log Off", "LogOff", "Account") ]
}
else {
    @:[ @Html.ActionLink("Log On", "LogOn", "Account", new { returnUrl = Url.Content(Request.AppRelativeCurrentExecutionFilePath) },null) ]
}